import request from "@/utils/request";

export default {
  //生成订单Api
  submitOrder(scheduleId,patientId){
    return request({
      url: `/api/order/orderInfo/auth/submitOrder/${scheduleId}/${patientId}`,
      method:'POST'
    })
  },
  //根据订单id查询订单的详细信息
  getOrders(orderId){
    return request({
      url: `/api/order/orderInfo/auth/getOrders/${orderId}`,
      method:'GET'
    })
  },
  //获取订单列表
  getOrderList(page,limit,orderQueryVo){
    return request({
      url: `/api/order/orderInfo/auth/getOrderList/${page}/${limit}`,
      method:'GET',
      params: orderQueryVo
    })
  },
  //查询订单状态
  getStatusList(){
    return request({
      url: `/api/order/orderInfo/auth/getStatusList`,
      method:'GET'
    })
  },

  //取消订单
  cancelOrder(orderId){
    return request({
      url: `/api/order/orderInfo/auth/cancelOrder/${orderId}`,
      method:'GET'
    })
  }
}
